home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / text0059.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  433 b   |  22 lines

  1. On 9 Apr 1997, Hakan Venderlof wrote:
  2.  
  3. > When I divide something like this:
  4. > 1717680/1000000
  5. > I get answer 1 but I want it to be 1.7
  6.  
  7. Use floats in the calculation:
  8. 1717680.0/1000000.0
  9.  
  10. If your numbers are integers to begin with, multiply them with 1.0 or add
  11. 0.0.
  12.  
  13. -- 
  14.  
  15. Branko Collin       http://www.xs4all.nl/~collin
  16. collin@xs4all.nl    http://www.kun.nl/undans/members/branko.html
  17.    "Quote removed for safety reasons"
  18.  
  19.  
  20.